|
2020-2021 Sunseeker Telemetry and Lighting System
|
#include "driverlib.h"Go to the source code of this file.
Functions | |
| void | main (void) |
| void | COMP_B_ISR (void) |
| void COMP_B_ISR | ( | void | ) |
Definition at line 138 of file comp_b_ex2_1V5RefInt.c.
| void main | ( | void | ) |
COMPB - CB Interrupt, Input compared against 1.5V Internal Reference
Use CompB and internal reference to determine if input 'Vcompare' is high of low. For the first time, when Vcompare exceeds the 1.5V internal reference, CBIFG is set and device enters the CompB ISR. In the ISR CBIES is toggled such that when Vcompare is less than 1.5V internal reference, CBIFG is set. LED is toggled inside the CompB ISR
MSP430x552x
------------------
/|\| |
| | |
--|RST P6.0/CB0|<- Vcompare
| P1.0|-> LED 'ON'(Vcompare>1.5V); 'OFF'(Vcompare<1.5V)
| |
This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:
This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.
Definition at line 64 of file comp_b_ex2_1V5RefInt.c.
References __no_operation().